def current_user(request):
  return request.cookies.get('email')

def set_current_user(response, email):
  # TODO: set a proper cookie.  
  c = Cookie.SimpleCookie()
  c['email'] = email
  response.headers.add_header('Set-Cookie', c.output(header=''))
  